<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;


return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('predict_results', function (Blueprint $table) {
            $table->id();
            $table->uuid('dev_sn');
            $table->nullableMorphs('dev');
            $table->json('advice')->nullable(true)->comment('诊断建议(json)');
            $table->json('result')->nullable(true)->comment('诊断结果(json)');
            $table->string('remarks')->nullable(true)->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('predict_results');
    }
};
